﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DokterAfspraken
{
    public partial class Dokterafspraken : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LoginFactory myLoginFactory = new LoginFactory();
            if (myLoginFactory.CheckLogin() == true)
            {
                logoutPlaceHolder.Visible = true;
            }
            else
            {
                logoutPlaceHolder.Visible = false;
            }
        }


        protected void btnAfmelden2_Click(object sender, EventArgs e)
        {
            LoginFactory myLoginFactory = new LoginFactory();
            myLoginFactory.LogOut();
            System.Web.HttpContext.Current.Response.Redirect("../AdminPages/LoginScreenAdminDoctor.aspx");
        }
    }
}